package com.thkj.service.impl;

import dp.dao.PagingList;
import com.thkj.framework.base.BaseService;
import com.thkj.service.TblVersionService;
import com.thkj.entity.TblVersion;

import java.util.Map;

import org.springframework.stereotype.Service;

@Service
public class TblVersionServiceImpl extends BaseService implements TblVersionService {
    public void insertTblVersion(TblVersion t){
        dao.insert("com.thkj.mapper.TblVersion.insert", t);
    }

    public int updateTblVersion(TblVersion t){
        int row = dao.update("com.thkj.mapper.TblVersion.update", t);
        return row;
    }

    public int deleteTblVersion(String t ){
        return dao.delete("com.thkj.mapper.TblVersion.delete", t);
    }

    public TblVersion getTblVersionById(String t){
        return dao.queryForObject("com.thkj.mapper.TblVersion.getById", t, TblVersion.class);
    }

	@Override
	public PagingList<TblVersion> query(int pageIndex, int pageSize, Map<String, Object> param) {
		return dao.queryForPagingList("com.thkj.mapper.TblVersion.query",param, pageIndex, pageSize, TblVersion.class);
	}

}